package com.mapper;

import com.domain.Role;
import com.qo.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoleMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Role record);

    Role selectByPrimaryKey(Long id);

    List<Role> selectAll();

    int updateByPrimaryKey(Role record);

    int selectForCournt(QueryObject qo);

    List<Role> selectLimitList(QueryObject qo);

    Role selectByEmpId(@Param("eid")Long eid);
    void insertRelation(@Param("rid")Long rid, @Param("pid")Long pid);
    void deleteRelation(@Param("rid")Long rid);
}